<template>
  <div class="services-page">
    <!-- Background Elements -->
    <div class="bg-rectangle bg-rect-1"></div>
    <div class="bg-rectangle bg-rect-2"></div>
    <div class="bg-line"></div>
    
    <div class="services-container">
      <!-- Header Section with Icon -->
      <div class="header-section">
        <div class="header-icon-container">
          <div class="header-icon">
            <svg viewBox="0 0 24 24" fill="none">
              <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
            </svg>
          </div>
        </div>
        <h1 class="main-title">设计服务·全品类解决方案</h1>
        <p class="main-subtitle">为企业与学生定制数字化设计与创意服务</p>
      </div>
      
      <!-- Solutions Section - Three Service Cards -->
      <div class="solutions-section">
        <div class="service-cards">
          <!-- Card 1: 企业数字化设计 -->
          <div class="service-card card-enterprise">
            <div class="card-background"></div>
            <div class="card-icon">
              <svg viewBox="0 0 64 64" fill="none">
                <circle cx="32" cy="20" r="6" fill="#4A9EFF"/>
                <circle cx="20" cy="32" r="4" fill="#4A9EFF"/>
                <circle cx="44" cy="32" r="4" fill="#4A9EFF"/>
                <circle cx="32" cy="44" r="6" fill="#4A9EFF"/>
                <line x1="26" y1="20" x2="24" y2="32" stroke="#4A9EFF" stroke-width="2"/>
                <line x1="38" y1="20" x2="40" y2="32" stroke="#4A9EFF" stroke-width="2"/>
                <line x1="32" y1="26" x2="32" y2="38" stroke="#4A9EFF" stroke-width="2"/>
                <line x1="24" y1="32" x2="40" y2="32" stroke="#4A9EFF" stroke-width="2"/>
              </svg>
            </div>
            <h3 class="card-title">企业数字化设计</h3>
            <p class="card-description">
              提供专业的企业网站设计、APP 开发、小程序定制等数字化解决方案，打造极致用户体验。
            </p>
            <button class="contact-btn">联系我们</button>
          </div>
          
          <!-- Card 2: 学生创意支持 -->
          <div class="service-card card-student">
            <div class="card-background"></div>
            <div class="card-icon">
              <svg viewBox="0 0 64 64" fill="none">
                <rect x="16" y="20" width="32" height="24" rx="4" fill="none" stroke="#4A9EFF" stroke-width="2"/>
                <rect x="20" y="24" width="24" height="16" rx="2" fill="#4A9EFF" opacity="0.3"/>
                <circle cx="32" cy="32" r="6" fill="#4A9EFF"/>
                <path d="M24 16 L32 12 L40 16" stroke="#4A9EFF" stroke-width="2" fill="none"/>
                <circle cx="32" cy="32" r="2" fill="white"/>
              </svg>
            </div>
            <h3 class="card-title">学生创意支持</h3>
            <p class="card-description">
              为学生提供专业课题指导、课业辅导、创意项目专业支持，助力学术与实践完美结合。
            </p>
            <button class="contact-btn">联系我们</button>
          </div>
          
          <!-- Card 3: 视觉创意设计 -->
          <div class="service-card card-visual">
            <div class="card-background"></div>
            <div class="card-icon">
              <svg viewBox="0 0 64 64" fill="none">
                <rect x="12" y="16" width="40" height="32" rx="4" fill="none" stroke="#4A9EFF" stroke-width="2"/>
                <rect x="16" y="20" width="32" height="24" rx="2" fill="#4A9EFF" opacity="0.2"/>
                <rect x="20" y="24" width="12" height="8" rx="2" fill="#4A9EFF"/>
                <rect x="36" y="24" width="12" height="4" rx="1" fill="#4A9EFF" opacity="0.6"/>
                <rect x="36" y="30" width="8" height="2" rx="1" fill="#4A9EFF" opacity="0.4"/>
                <rect x="20" y="36" width="28" height="2" rx="1" fill="#4A9EFF" opacity="0.3"/>
                <rect x="20" y="40" width="20" height="2" rx="1" fill="#4A9EFF" opacity="0.3"/>
              </svg>
            </div>
            <h3 class="card-title">视觉创意设计</h3>
            <p class="card-description">
              专业的品牌视觉设计，包括 LOGO、插画、海报等创意服务，为品牌注入独特魅力。
            </p>
            <button class="contact-btn">联系我们</button>
          </div>
        </div>
      </div>
      
      <!-- Contact Section -->
      <div class="contact-section">
        <div class="contact-left">
          <h2 class="contact-title">需要定制设计服务?</h2>
          <p class="contact-subtitle">填写以下信息，我们将尽快与您联系</p>
        </div>
        
        <div class="contact-right">
          <form class="contact-form">
            <div class="form-row">
              <div class="form-group">
                <input type="text" class="form-input" placeholder="您的姓名" required>
              </div>
              <div class="form-group">
                <input type="tel" class="form-input" placeholder="联系电话" required>
              </div>
            </div>
            <div class="form-group full-width">
              <textarea class="form-input large" placeholder="请简要描述您的需求" rows="4"></textarea>
            </div>
            <div class="form-submit">
              <button type="submit" class="submit-btn">立即咨询</button>
            </div>
          </form>
        </div>
      </div>
      
      <!-- FAQ Section -->
      <div class="faq-section">
        <div class="faq-header">
          <h2 class="faq-title">常见问题</h2>
          <p class="faq-subtitle">TRANSLATION</p>
        </div>
        <div class="faq-list">
          <div class="faq-item">
            <div class="faq-question">
              <div class="faq-icon-wrapper">
                <div class="faq-icon">问</div>
              </div>
              <h3>设计服务的周期大概是多久？</h3>
            </div>
            <div class="faq-answer">
              <p>根据项目复杂度不同，一般企业网站设计周期为 15-20 个工作日，APP 设计周期为 20-30 个工作日，小型设计项目 3-5 个工作日内完成。</p>
            </div>
          </div>
          
          <div class="faq-item">
            <div class="faq-question">
              <div class="faq-icon-wrapper">
                <div class="faq-icon">问</div>
              </div>
              <h3>设计服务是否包含后期修改？</h3>
            </div>
            <div class="faq-answer">
              <p>我们提供2次免费修改服务，确保设计成果完全符合您的期望。如需额外修改，将按照实际工作量收取适当费用。</p>
            </div>
          </div>
          
          <div class="faq-item">
            <div class="faq-question">
              <div class="faq-icon-wrapper">
                <div class="faq-icon">问</div>
              </div>
              <h3>如果我对设计不满意，有没有退款政策？</h3>
            </div>
            <div class="faq-answer">
              <p>本承诺所有设计均可反复修改至满意为止，初稿不满意可全额退款。退款后我们将停止法律许可权利，如果实现方案不满意业务，我们将停止法律许可权利。</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue';

export default defineComponent({
  name: 'ServicesPage',
  setup() {
    const formData = ref({
      description: '',
      name: '',
      phone: ''
    });

    return {
      formData
    };
  }
});
</script>

<style lang="scss" scoped>
.services-page {
  background: #1A1A1A;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

// Background Elements
.bg-rectangle {
  position: absolute;
  
  &.bg-rect-1 {
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  }
  
  &.bg-rect-2 {
    top: 15%;
    right: -80px;
    width: 160px;
    height: 320px;
    background: rgba(0, 122, 255, 0.015);
    border-radius: 20px;
    transform: rotate(12deg);
  }
}

.bg-line {
  position: absolute;
  top: 35%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  position: relative;
  z-index: 1;
}

// Header Section
.header-section {
  text-align: center;
  margin-bottom: 80px;
  padding: 40px 0;
  
  .header-icon-container {
    margin-bottom: 40px;
    
    .header-icon {
      width: 140px;
      height: 140px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 70px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(20px);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
      
      svg {
        width: 50px;
        height: 50px;
        color: #ffffff;
      }
    }
  }
  
  .main-title {
    font-size: 56px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  
  .main-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.6;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.4;
  }
}

// Solutions Section
.solutions-section {
  margin-bottom: 120px;
  
  .service-cards {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
  }
}

// Service Cards
.service-card {
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card.card-enterprise {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-card.card-student {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.service-card.card-visual {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
  
.service-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
 }
  
.service-card .card-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
}

.service-card .card-icon {
  position: relative;
  z-index: 3;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-card .card-icon svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
  

  
.service-card .card-title {
   position: relative;
   z-index: 3;
   font-size: 24px;
   font-weight: 600;
   color: white;
   margin-bottom: 15px;
 }

.service-card .card-description {
   position: relative;
   z-index: 3;
   font-size: 16px;
   line-height: 1.6;
   color: rgba(255, 255, 255, 0.9);
   margin-bottom: 25px;
 }

.service-card .contact-btn {
   position: relative;
   z-index: 3;
   background: rgba(255, 255, 255, 0.2);
   color: white;
   border: 1px solid rgba(255, 255, 255, 0.3);
   padding: 12px 30px;
   border-radius: 25px;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.3s ease;
   backdrop-filter: blur(10px);
 }
 
 .service-card .contact-btn:hover {
   background: rgba(255, 255, 255, 0.3);
   transform: translateY(-2px);
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
 }

// Contact Section
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 120px;
  
  .contact-left {
    text-align: center;
    
    .contact-title {
      font-size: 40px;
      font-weight: 600;
      color: #ffffff;
      margin: 0 0 20px 0;
      letter-spacing: -0.01em;
      line-height: 1.2;
    }
    
    .contact-subtitle {
      font-size: 18px;
      font-weight: 400;
      color: #ffffff;
      opacity: 0.6;
      margin: 0;
      line-height: 1.5;
    }
  }
  
  .contact-right {
    margin: 0 auto;
    width: 100%;
  }
}

// Form Styles
.contact-form {
  width: 100%;
  
  .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    
    .form-group {
      flex: 1;
    }
  }
  
  .form-group {
    &.full-width {
      width: 100%;
    }
  }
  
  .form-input {
    width: 100%;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
    
    &.large {
      min-height: 120px;
      resize: vertical;
    }
    
    &::placeholder {
      color: rgba(255, 255, 255, 0.6);
    }
    
    &:focus {
      outline: none;
      border-color: rgba(0, 122, 255, 0.4);
      background: rgba(255, 255, 255, 0.06);
      box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    }
  }
  
  .form-submit {
     margin-top: 30px;
     text-align: center;
   }
   
   .submit-btn {
     background: linear-gradient(135deg, #4A9EFF 0%, #007AFF 100%);
     color: white;
     border: none;
     padding: 18px 60px;
     border-radius: 50px;
     font-size: 16px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     box-shadow: 0 8px 25px rgba(74, 158, 255, 0.3);
   }
   
   .submit-btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 12px 35px rgba(74, 158, 255, 0.4);
     background: linear-gradient(135deg, #5BA8FF 0%, #1A84FF 100%);
   }
   
   .submit-btn:active {
     transform: translateY(0);
     box-shadow: 0 6px 20px rgba(74, 158, 255, 0.3);
   }
}

// FAQ Section
.faq-section {
  width: 100%;
  margin: 0 auto;
  background: #1a1a2e;
  padding: 60px 40px;
  border-radius: 20px;
  
  .faq-header {
    text-align: center;
    margin-bottom: 60px;
    
    .faq-title {
      font-size: 40px;
      font-weight: 600;
      color: #ffffff;
      margin: 0 0 8px 0;
      letter-spacing: -0.01em;
    }
    
    .faq-subtitle {
      font-size: 14px;
      font-weight: 400;
      color: #ffffff;
      opacity: 0.5;
      margin: 0;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
  }
  
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

.faq-item {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  
  .faq-question {
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    
    .faq-icon-wrapper {
      flex-shrink: 0;
      margin-top: 2px;
      
      .faq-icon {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 500;
        color: #ffffff;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
      }
    }
    
    h3 {
      font-size: 18px;
      font-weight: 500;
      color: #ffffff;
      margin: 0;
      line-height: 2;
      flex: 1;
    }
  }
  
  .faq-answer {
    padding: 0 0 0 60px;
    
    p {
      font-size: 16px;
      font-weight: 400;
      color: #ffffff;
      opacity: 0.7;
      line-height: 1.6;
      margin: 0;
    }
  }
}

// Responsive Design
@media (max-width: 1024px) {
  .services-container {
    padding: 40px 30px 60px;
  }
  
  .service-cards {
    gap: 25px;
  }
  
  .service-card {
    padding: 30px;
    
    .card-image-placeholder {
      .image-placeholder {
        height: 140px;
        
        .placeholder-text {
          font-size: 13px;
        }
      }
    }
  }
  
  .contact-section {
    gap: 30px;
    
    .contact-right {
      max-width: 100%;
    }
  }
}

@media (max-width: 768px) {
  .services-container {
    padding: 30px 20px 50px;
  }
  
  .header-section {
    margin-bottom: 60px;
    
    .header-icon-container .header-icon {
      width: 120px;
      height: 120px;
      
      svg {
        width: 40px;
        height: 40px;
      }
    }
    
    .main-title {
      font-size: 42px;
    }
    
    .main-subtitle {
      font-size: 18px;
    }
  }
  
  .service-cards {
    flex-direction: column;
    gap: 25px;
  }
  
  .service-card {
    padding: 30px;
    
    .card-image-placeholder {
      .image-placeholder {
        height: 120px;
        
        .placeholder-text {
          font-size: 12px;
        }
      }
    }
    
    .card-title {
      font-size: 22px;
    }
    
    .card-description {
      font-size: 15px;
    }
  }
  
  .contact-section {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
    
    .contact-left {
      .contact-title {
        font-size: 32px;
      }
    }
    
    .contact-right {
      max-width: 100%;
    }
  }
  
  .contact-form {
    .form-row {
      flex-direction: column;
      gap: 20px;
    }
  }
  
  .faq-section {
    .faq-header {
      .faq-title {
        font-size: 32px;
      }
    }
  }
  
  .faq-item {
    .faq-question {
      gap: 15px;
      
      .faq-icon-wrapper {
        .faq-icon {
          width: 35px;
          height: 35px;
          font-size: 12px;
        }
      }
      
      h3 {
        font-size: 16px;
      }
    }
    
    .faq-answer {
      padding: 0 0 0 50px;
    }
  }
}

@media (max-width: 480px) {
  .header-section {
    .header-icon-container .header-icon {
      width: 100px;
      height: 100px;
      
      svg {
        width: 35px;
        height: 35px;
      }
    }
    
    .main-title {
      font-size: 32px;
    }
    
    .main-subtitle {
      font-size: 16px;
    }
  }
  
  .service-card {
    padding: 25px;
    
    .card-image-placeholder {
      margin: 30px 0 25px 0;
      
      .image-placeholder {
        height: 100px;
        
        .placeholder-text {
          font-size: 11px;
        }
      }
    }
    
    .card-title {
      font-size: 20px;
    }
  }
  
  .contact-section {
    gap: 25px;
    
    .contact-left {
      .contact-title {
        font-size: 28px;
      }
    }
    
    .contact-right {
      max-width: 100%;
    }
  }
  
  .faq-section {
    .faq-title {
      font-size: 28px;
    }
  }
  
  .faq-item {
    .faq-question {
      padding: 20px;
      
      h3 {
        font-size: 15px;
      }
      
      .faq-icon {
        width: 20px;
        height: 20px;
        font-size: 14px;
        margin-left: 15px;
      }
    }
    
    &.active .faq-answer {
      padding: 0;
    }
  }
}
</style>
